package com.ucampus.controller;

import com.ucampus.entity.ResponseData;
import com.ucampus.service.ManagerLoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/login")
public class ManagerLoginController {
    @Autowired
    private ManagerLoginService managerLoginService;

    @GetMapping("/{username}/{password}")
    public ResponseData login(@PathVariable String username, @PathVariable String password) {
        return managerLoginService.login(username, password);
    }
}
